package com.yang.jpa.dao;

import com.yang.jpa.model.Player;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface PlayerDao extends JpaRepository<Player, Integer>, JpaSpecificationExecutor<Player> {

//    /**
//     * 返回自定义实体
//     * @return
//     */
//    @Query(value = "select new com.example.bootstraptable.entity.Student(p.name,p.gender,p.age,p.school,p.speciality) from Player p")
//    List<Student> getStudents();
}
